﻿using Example51_sharp.ExampleClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example51_sharp
{
    namespace ExampleClass
    {
        class Rectangle
        {
            int width, height;
            public Rectangle(int a, int b)
            {
                width = a;
                height = b;
            }
            public int area()
            {
                return (width * height);
            }
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle recta = new Rectangle(3, 4);
            Rectangle rectb = new Rectangle(5, 6);
            recta = rectb;
            Console.WriteLine("rect a:{0}", recta.area());
            Console.WriteLine("rect b:{0}", rectb.area());

        }
    }
}
